/**
 *  用户搜索相关请求模块
 */

import { request } from '../utils/request.js'

export const getSearchSuggestions = q => request({
  method: 'get',
  url: '/v1_0/suggestion',
  params: {
    q
  }
})

/**
 *  搜索完成
 */

export const getSearchResult = params => request({
  method: 'get',
  url: '/v1_0/search',
  params
})
